package com.usian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 陈宇轩
 * @version 1.0
 * @date 2023/8/7 15:49
 */

@TableName("ques")
@ToString
@Data
public class Ques extends OptAns {
    @TableId(value = "id",type = IdType.AUTO)
    public Integer id;
    private String name;
    private String lid;
    private Integer mid;
    private Integer userid;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date date;
    private String  sjId;
    private Integer  mark;
}
